home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
bootex10.zip
/
REBOOT.ASM
< prev
next >
Wrap
Assembly Source File
|
1992-04-11
|
825b
|
27 lines
; Program : Reboot.asm
; Author : Jenn-Hwa Guan --> MIS Hawk
; Using TASM.EXE , TLINK.EXE
; To show the right way to reboot
; Bitnet : U432660@twncu865.Bitnet
; Internet : Hawk@s825.ncu.edu.tw or hawk@[140.115.80.1]
;
.model small
.data
restart label dword
db 4 dup (?)
.code
main: mov ax,@data
mov ds,ax
mov bx,-1 ; segment CS:FFFF
mov es,bx
mov bx,3
mov dx,word ptr es:[bx] ; offset 0003
mov bx,1
mov ax,word ptr es:[bx] ; offset 0001
mov word ptr restart+2,dx ; indicate the restart address
mov word ptr restart,ax
call dword ptr restart ; do reboot by restart address
end main
end